import axios from '@/libs/api.request'

export const getTableData = () => {
  return axios.request({
    url: 'gnbl/ProductModel/',
    method: 'get'
  })
}

export const postPro = ({ name, price, score }) => {
  const data = {
    name,
    price,
    score
  }
  return axios.request({
    url: 'gnbl/ProductModel/',
    data,
    method: 'post'
  })
}

export const getDragList = () => {
  return axios.request({
    url: 'get_drag_list',
    method: 'get'
  })
}
